<?php

namespace Part06_DecorationMode\Code3;

class Decorator extends Component
{
    protected $componentObj;

    public function setComponent($componentObj)
    {
        $this->componentObj = $componentObj;
    }

    public function Operation()
    {
        if ($this->componentObj != null) {
            $this->componentObj->Operation();
        }
    }
}